package com.itstyle.seckill.aop;
import com.queen.oa.api.constant.ConstantsApi;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class DefaultRequestInitializeStrategy extends RequestInitializeStrategy {
    @Override
    public void initRequest(HttpServletRequest httpServletRequest) {
        HttpSession session = httpServletRequest.getSession();
        session.setAttribute("ip", "191.232.232.232");
        session.setAttribute(ConstantsApi.SYS_MESSEGE, "测试信息");
        httpServletRequest.setAttribute(ConstantsApi.SYS_MESSEGE, "测试信息");
    }
}
